package com.bilibili.juc.base;

/**
 * @author zuife
 * @description
 * @since 2024-04-18 21:08:46
 */
public class ThreadBaseDemo {
    public static void main(String[] args) {
        Thread t1 = new Thread(() -> {
            for (int i = 0; i < 100; i++) {
                System.out.println("t1:" + i);
            }
        }, "t1");
        t1.start();
        Thread t2 = new Thread(() -> {
            for (int i = 0; i < 100; i++) {
                System.out.println("t2:" + i);
            }
        }, "t2");
    }
}
